cubes = [n**3 for n in range(1, 11)]
for n in cubes:
    print(f'{n}\t', end = '')
print(f"The first three items in the list are:{cubes[:3]}")
print(f"Three items from the middle of the list are:{cubes[3:6]}")
print(f"The last three items in the list are:{cubes[-3:]}")